import request from '@/utils/request'

export function saveCascade(data) {
  return request({
    url: '/oauth/module/saveCascade',
    method: 'post',
    data
  })
}

export function delCascade(id) {
  return request({
    url: '/oauth/module/delCascade',
    method: 'post',
    data: { id }
  })
}

export function get(id) {
  return request({
    url: '/oauth/module/get',
    method: 'get',
    params: { id }
  })
}

export function getParentSelect(params) {
  return request({
    url: '/oauth/module/getParentSelect',
    method: 'get',
    params
  })
}

export function getFuns(id) {
  return request({
    url: '/oauth/module/getFuns',
    method: 'get',
    params: { id }
  })
}
